	
	*************************************************************************
	* Table A.2: Placebo Tests for Turnout and Postal Voting, 1981-2009 
	* (Canton-level Referendum Data)
	*************************************************************************
	
	scalar year_up=2011
	use data7.dta, clear	
    
	gen day=substr(datum,1,2)
	gen month=substr(datum,4,2)
	destring day month year, replace
	
	merge m:1 knr year month day using data8.dta, gen(merge_placebo)

	gen abstag_rel_canton= abstag_admin-postal_change_timer
	
	gen time_var1=floor( abstag_rel_canton/5)
	
	tab time_var1, gen(time_var1_)
	
	merge m:1 knr year using data9.dta, // merge covariates

	drop if _merge==1	// drop all observations for which we have only aggregate information
			
	gen turnout=bet_mean/100
	sort knr time
	egen abstag=group(time)
	drop if knr==26
	gen canton_num=knr
	
	xtset knr abstag
	
	gen sample=0
	replace sample=1 if catholic!=. &  university!=. & share_over60!=. 
	
	reg turnout    time_var1_49-time_var1_59 ///
	if inrange(year,1981,year_up)  & sample==1, vce(cluster abstag)
	outreg2 using table_a2.xls , excel  stats(coef se  )  cttop("time FE") dec(3) replace	label


	reg turnout    time_var1_49-time_var1_59  ///
	 i.canton_num   if inrange(year,1981,year_up) & sample==1 , vce(cluster abstag)
	outreg2 using table_a2.xls , excel  stats(coef se  )  cttop("time FE") dec(3) append	label

	reg turnout    time_var1_49-time_var1_59  ///
	i.abstag    if inrange(year,1981,year_up) & sample==1 , vce(cluster abstag)
	outreg2 using table_a2.xls , excel  stats(coef se  )  cttop("time FE") dec(3) append	label
	
	reg turnout     time_var1_49-time_var1_59 ///
	i.abstag i.canton_num  	    ///
	if inrange(year,1981,year_up) & sample==1 , vce(cluster abstag)
	outreg2 using table_a2.xls , excel  stats(coef se  )  cttop("time FE") dec(3) append	label

	* F-test for placebo-effects
	lincom time_var1_49+time_var1_50+time_var1_51+time_var1_52+time_var1_53 
	lincom time_var1_50+time_var1_51+time_var1_52+time_var1_53 
	lincom time_var1_51+time_var1_52+time_var1_53 
	


	
